package com.zmkj.Controller;

import com.zmkj.domain.SysUser;
import com.zmkj.service.Imp.SysUserServiceImp;
import com.zmkj.utils.Rest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PACKAGE_NAME: com.zmkj.Controller
 * @NAME: 孟海平
 * @USER: 26299
 * @DATE: 2023/10/27 16:09
 * @DATEILAS: 用途详解
 **/

@RestController
@RequestMapping
public class LoginController {

    @Autowired
    private SysUserServiceImp sysUserServiceImp;

    @PostMapping("/login")
    public Rest login(@RequestBody SysUser sysUser){
        return sysUserServiceImp.checkUser(sysUser);
    }

}
